﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ByteSite.Entitys
{
    public class CloudGoods
    {
        /// <summary>
        /// JD_5463695
        /// </summary>
        public string NO { get; set; }

        /// <summary>
        /// 产品网址
        /// </summary>
        public string SourceUrl { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 类别
        /// </summary>
        public string Category { get; set; }
        /// <summary>
        /// 类别在系统中的id
        /// </summary>
        public int CategoryId { get; set; }
        /// <summary>
        /// 主图地址
        /// </summary>
        public string ImageUrl { get; set; }
        /// <summary>
        /// 市场价
        /// </summary>
        public decimal MarketPrice { get; set; }
        /// <summary>
        /// 售价
        /// </summary>
        public decimal SellPrice { get; set; }
        /// <summary>
        /// 自定义属性
        /// </summary>
        public List<CloudGoodsAttr> Attrs { get; set; }
        /// <summary>
        /// 标准参数
        /// </summary>
        public List<CloudGoodsParams> Params { get; set; }
        /// <summary>
        /// 图片
        /// </summary>
        public List<CloudGoodsImages> Images { get; set; }
        /// <summary>
        /// 详情
        /// </summary>
        public string Content { get; set; }
    }

    public class CloudGoodsImages
    {
        public string Url { get; set; }

        public int Order { get; set; }

        public string Remark { get; set; }
    }
    public class CloudGoodsAttr
    {
        public string Name { get; set; }

        public string Value { get; set; }
    }
    public class CloudGoodsParams
    {
        public string Name { get; set; }

        public string Value { get; set; }
    }
}
